//
// Created by TATO on 2025/8/22.
//

#ifndef HTTPSERVER_HTTP_TCP_H
#define HTTPSERVER_HTTP_TCP_H
#include <http_socket.h>
#include <netinet/tcp.h>
/**
 * 获取tcp连接状态
 * @param fd
 * @param info
 */
int tcp_conn_info(int fd, struct tcp_info *info);
/**
 * 判断当前网络描述符是否处于连接状态
 * @param fd
 * @return
 */
int fd_is_connected(int fd);
#endif //HTTPSERVER_HTTP_TCP_H
